<?php
	require("includes/basic.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
	<HEAD>
		
		<TITLE> :: <?php echo $appName?> :: </TITLE>
		<link rel='stylesheet' type='text/css' href='style/inner.css'>
		<script type='text/javascript' src='js/inner.js'></script>

		<script type='text/javascript' src='js/inner.js'></script>

		<!-- validation start -->

		<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
		<script src="js/jquery.validationEngine-en.js" type="text/javascript"></script>
		<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
		
				
		<script>	
		$(document).ready(function() {

			
			$("#edit-module").validationEngine()
		
		});
		
		
		/*function validate2fields(){
			if($("#firstname").val() =="" ||  $("#lastname").val() == ""){
				return false;
			}else{
				return true;
			}
		}*/
		</script>
		
		<!-- validation end -->




	</HEAD>

	<body unselectable="on" class="dialog"> 
		<?php $pageName="Administration View"; ?>
		<?php require("includes/header.php"); ?>

		<!-- devi : body content begins here -->
		<table class="dialog" cellpadding="0" cellspacing="0"><tr><td> 
		<table class="dialogbox" cellpadding="0" cellspacing="0"> 
		<tr><td> 
		<div class="dialoghead" unselectable="on">Edit Module Wizard</div>
        <div class="dialogcontent" style="height: 450px; unselectable="on">
		<form id="edit-module" name="edit-phase" action="edit-module-process.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()" class="nomargin">
		

		<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
		<tr><td style="vertical-align: top;">

		<div class="dialogspacer" unselectable="on">&nbsp;</div>
			<?php $buttonTitle = "Edit Module"; ?>
			<?php $buttonSize = "200px"; ?>
			<?php require("greenHeaderButton.php"); ?>
		<div class="dialogspacer" unselectable="on">&nbsp;</div>

		<div class="dialogblockborder dialogblockborderheadline" unselectable="on"> 
		<div class="dialogblock" unselectable="on"> 
		<span class="dialogblockhead" unselectable="on"></span>

        
<?php	
if(isset($_SESSION['uid'])) {
$moduleid=$_REQUEST['moduleid'];	
$moduledetails=mysql_query("select * from module_master where module_id=$moduleid");
$row=mysql_fetch_array($moduledetails);
extract($row);
$mid=$row['module_id'];
$modulename=$row['module'];
$moduledesc=$row['module_desc'];
		
?>


	<center>
	<table border="0">
	
<tr><td colspan="5" align="center"><b>EDIT MODULE</b></td></tr>
<tr><td><input type="hidden" name="moduleid"   value="<?php echo $mid;?>"></td></tr>


    
<tr>
	<td>Module</td>
    <td><Input type="text" name="module" id="module" class="validate[required] text-input" value="<?php echo $modulename;?>"/></td>
    <td colspan="3">&nbsp;</td>
</tr>
<tr>
	<td>Module Description</td>
    <td ><textarea name="moduledesc" rows="6" cols="60"><?php echo $moduledesc;?></textarea></td>
    
</tr>





	</table>
  </div></div>

	</center>
	<div class="dialogbuttons" unselectable="on">

		<input name="back" type="button" value="&#060;&#060; Back" class="dialogbutton" onclick="javascript:history.go(-1)">
		<input name="submit" type="submit" value="Save &#062;&#062;" class="dialogbutton">
		<input name="cancel" type="button" value="Cancel" class="dialogbutton" onclick="window.location.href='index.php';" style="margin-left: 50px;">
		
		</div>
</form>

		<div class="help" name="help1" id="help1" onmouseout="hideHelp(1);" onmouseover="showHelp(1);">
			The username required for the customer to login
		</div>


		<div class="help" name="help2" id="help2" onmouseout="hideHelp(2);" onmouseover="showHelp(2);">
			The password required for the customer to login
		</div>

		<div class="help" name="help3" id="help3" onmouseout="hideHelp(3);" onmouseover="showHelp(3);">
			Please retype the same password again. This process helps us ensure you do not make any typographical errors when you enter a password.
		</div>

		<div class="help" name="help4" id="help4" onmouseout="hideHelp(4);" onmouseover="showHelp(4);">
			Enter the name of the company
		</div>

		<div class="help" name="help5" id="help5" onmouseout="hideHelp(5);" onmouseover="showHelp(5);">
			Enter the name of the primary contact for the company
		</div>

		<div class="help" name="help6" id="help6" onmouseout="hideHelp(6);" onmouseover="showHelp(6);">
			Enter the mobile number of the contact for the company
		</div>

		<div class="help" name="help7" id="help7" onmouseout="hideHelp(7);" onmouseover="showHelp(7);">
			Enter the postal address of the company
		</div>

		</td></tr></table> 
		</td></tr></table> 
		<p>&nbsp;</p> 

		<!-- devi : body content ends here -->
		<?php }?>
		<?php require("includes/footer.php"); ?>
	</BODY>
</HTML>
